del /Q pkg-manager\lib\*
del /Q pkg-manager\data\*
copy /Y src\lib\* pkg-manager\lib\
copy /Y src\data\* pkg-manager\data\
copy /Y pkg-manager.json pkg-manager\package.json
java -jar yuicompressor-2.4.6\build\yuicompressor-2.4.6.jar .\src\lib\main.js -o .\pkg-manager\lib\main.js
java -jar yuicompressor-2.4.6\build\yuicompressor-2.4.6.jar .\src\data\application.js -o .\pkg-manager\data\application.js
java -jar yuicompressor-2.4.6\build\yuicompressor-2.4.6.jar .\src\data\armees.js -o .\pkg-manager\data\armees.js
java -jar yuicompressor-2.4.6\build\yuicompressor-2.4.6.jar .\src\data\battle.js -o .\pkg-manager\data\battle.js
java -jar yuicompressor-2.4.6\build\yuicompressor-2.4.6.jar .\src\data\create.js -o .\pkg-manager\data\create.js
java -jar yuicompressor-2.4.6\build\yuicompressor-2.4.6.jar .\src\data\widget.js -o .\pkg-manager\data\widget.js
python "addon-sdk-1.1\bin\cfx" xpi --pkgdir=pkg-manager --static-args="{ \"url\": \"http://kewa.free.fr/minitroopers/create.php\" }" 
REM --update-link=http://kewa.free.fr/minitroopers/download.php --update-url=http://kewa.free.fr/minitroopers/update.php